package com.zsy.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.zsy.bean.Bis_Shop_User;
import com.zsy.mapper.Bis_Shop_UserMapper;

@Service
@Transactional
public class Bis_Shop_UserServiceImpl implements Bis_Shop_UserService {
	
	@Autowired
	private Bis_Shop_UserMapper bis_Shop_UserMapper;

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public List<Bis_Shop_User> listAll(Map map) {
		return bis_Shop_UserMapper.listAll(map);
	}

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public Bis_Shop_User getById(String shop_user_id) {
		return bis_Shop_UserMapper.getById(shop_user_id);
	}

	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void save(Bis_Shop_User bis_Shop_User) {
		bis_Shop_UserMapper.save(bis_Shop_User);

	}

	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void update(Bis_Shop_User bis_Shop_User) {
		bis_Shop_UserMapper.update(bis_Shop_User);

	}

	@Override
	@Transactional(propagation=Propagation.REQUIRED)
	public void delete(String shop_user_id) {
		bis_Shop_UserMapper.delete(shop_user_id);

	}

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public int getCount(Map map) {
		return bis_Shop_UserMapper.getCount(map);
	}

	@Override
	@Transactional(propagation=Propagation.SUPPORTS)
	public List<Bis_Shop_User> getByShopId(Map map) {
		return bis_Shop_UserMapper.getByShopId(map);
	}

	

}
